package com.wish.auth.feign;

import com.wish.dto.login.UserDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("contract-basic")
public interface UserFeign {

    @GetMapping("/user/getByUsername")
    public UserDto getByUsername(@RequestParam String username);

}
